<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div>哈哈哈哈</div>
    <input type="text"  name='user'>
    <script src="../jquery/jquery-3.6.0.min.js"></script>
<script>
    // $('div').html('你是谁')//html相当于  innerHTML

    let content=$('div').html()   //获取内容
    console.log(content)
    


    $('input[name="username"]').val('admin')
        let value = $('input[name="username"]').val()
        $('p').html(value)

    //获取值
    $('input[name="user"]').val('adimin')
    let E=$('input[name="user"]').val()
    console.log(E)
</script>
</body>
</html>